package com.liu.qqRobot.official.job;

import com.liu.qqRobot.official.service.SyncItemTendencyService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class SyncItemTendencyJob {

    @Resource
    private SyncItemTendencyService syncItemTendencyService;

    @Scheduled(cron = "0 0 12,23 * * ?")
    public void syncItemTendency() {
        log.info("开始同步Warframe官方wiki中的紫卡倾向");
        syncItemTendencyService.syncItemTendency();
        log.info("结束同步Warframe官方wiki中的紫卡倾向");
    }
}
